package com.example.jobback.req.manager.profile;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName: ManagerReq
 * @Description: 管理员请求体
 * @Author: lhb
 * @Date: 2025/5/17
 */
@Data
@Schema(title = "管理员请求体")
public class ManagerReq {

    @Schema(title = "出生日期")
    @NotNull(message="出生日期不为空")
    private LocalDateTime birthDate;

    @Schema(title = "姓名")
    @NotBlank(message="姓名不为空")
    private String name;

    @Schema(title = "性别")
    @NotBlank(message="性别不为空")
    @Pattern(regexp = "^(男|女)$", message = "性别只能为'男'或'女'")
    private String gender;

    @Schema(title = "居住地")
    @NotBlank(message="居住地不为空")
    private String location;
}
